<template>
	<echarts ref="echarts" :option="option" :canvasId="canvasId" :style="{ width, height }"></echarts>
</template>
<script>
	import echarts from "../echarts-uniapp/echarts-uniapp.vue";
	export default {
		components: {
			echarts
		},
		props: {
			canvasId:{
				type: String,
				default: 'echars-canvasId',
			},
			option: {
				type: Object,
				default () {
					return {}
				},
			},
			autoResize: {
				type: Boolean,
				default: true,
			},
			width: {
				type: String,
				default: '100%',
			},
			height: {
				type: String,
				default: '100%',
			}
		}
	}
</script>